package net.csdn.business.notify.common.pipeline.param;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;
import java.util.Set;


/**
 * @ClassName MessageParam
 * @Description 消息参数
 * @Author zhangyl
 * @Date 2023/11/29 11:48
 */
public abstract class MessageParam {

    /**
     * 业务消息发送批次号
     */
    @NotBlank(message = "batchNum不能为空")
    private String batchNum;

    /**
     * @Description: 接收者
     * 多个用,逗号号分隔开
     * 必传
     */
    @NotNull(message = "receiver不能为空")
    private Set<String> receiver;

    private  String failReason;

    public String getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(String batchNum) {
        this.batchNum = batchNum;
    }

    public Set<String> getReceiver() {
        return receiver;
    }

    public void setReceiver(Set<String> receiver) {
        this.receiver = receiver;
    }

    public String getFailReason() {
        return failReason;
    }

    public void setFailReason(String failReason) {
        this.failReason = failReason;
    }
}
